package com.ruoyi.ipms_patent.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

/*案件历史*/
@Data
@AllArgsConstructor
@NoArgsConstructor
//@Accessors(chain = true) 不要加这个注解，跟BaseEntity setCreateBy() void 返回类型冲突
public class CaseHistory extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /*案件历时主键id*/
    private Integer caseHistoryId;

    /*案件id*/
    private Integer caseId;

    /*案例历史状态类型字典*/
    private String caseHistoryStatusId;

    /**逻辑删除*/
    private String isDelete;

    /**乐观锁*/
    private Integer version;

    /**创建人*/
    private String createBy;

    /**创建时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**更新人*/
    private String updateBy;

    /**更新时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
